package com.example.mapper;

import com.example.pojo.ConditionsQuery;
import com.example.pojo.Material;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaterialMapper {
    List<Material> getMaterialList(@Param("cq") ConditionsQuery conditionsQuery);

    int addMaterial(@Param("ml") Material material);

    int editMaterialById(@Param("ml") Material material);

    Material getMaterialById(int id);

    int delMaterialById(@Param("id") int id);

    int delBatch(@Param("ids") List<Integer> idList);
}
